<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>cti</title>
	<script type="text/javascript" src="__ADMIN__/lib/qimo/js/jq/jquery.js"></script>
	<link rel="stylesheet" href="__ADMIN__/lib/qimo/css/cti.css">
	<script type="text/javascript">
        var m7$=$.noConflict()
        function logon() {
            var loginName = m7$("#icc-login-loginName").val();
            var password = m7$("#icc-login-password").val();
            var loginType = m7$("#icc-login-loginType").val();
            var agentStatusFlag = m7$('#agentStatus').prop('checked')
            var agentStatus
            if (!agentStatusFlag) {
                agentStatus = '0'
            } else {
                agentStatus = '1'
            }
            window.location.href = "main.html?loginName=" + loginName + "&password=" + encodeURIComponent(password) + "&loginType=" + loginType + '&agentStatus=' + agentStatus;
        }
        function changeAgentStatus() {
            var agentStatusFlag = m7$('#agentStatus').prop('checked')
            if (!agentStatusFlag) {
                m7$('#statusSpan').html('空闲').css({
                    "color": "#4DB690",
                    "margin-left": "3px"
                })
            } else {
                m7$('#statusSpan').html('忙碌').css({
                    "color": "#FF7A90",
                    "margin-left": "3px"
                })
            }
        }
	</script>
</head>
<body>
<div class="backGround">
	<div class="logo">
		<img src="__ADMIN__/lib/qimo/imgs/logo.png" alt="">
	</div>
	<div class="content">
		<div class="username"></div>
		<input type="text" value="" id="icc-login-loginName" placeholder="请输入用户名" />
		<div class="password"></div>
		<input type="password" value="" id="icc-login-password" placeholder="请输入密码" />
		<div class="loginTap">
			<div class="loginTapContent">
				<label class="conLabelLogin">登录方式:</label>
				<select id="icc-login-loginType">
					<option value="Local">直线</option>
					<option value="gateway">网关</option>
					<option value="sip">软电话</option>
				</select>
			</div>
			<div class="statusBtn">
				<input type="checkbox" name="status" id="agentStatus" class="chooseStatusBtn" value="off" onchange="changeAgentStatus()"/>
				<label for="agentStatus" class="chooseStatusBtnLabel"></label>
				<span style="color:#4DB690;margin-left: 3px" id="statusSpan">空闲</span>
			</div>
		</div>
		<a href="javascript:logon();" class="login">登录</a>
	</div>
</div>

</body>
</html>